package com.weixin.paleituo.fragment;

import android.content.Context;
import android.os.Bundle;
import android.view.View;

import com.weixin.paleituo.R;
import com.weixin.paleituo.base.BaseFragment;
import com.weixin.paleituo.bean.CheckBean;
import com.weixin.paleituo.contans.Contans;
import com.weixin.paleituo.util.UIUtils;
import com.weixin.paleituo.view.ItemBuyHouseStepView;

import butterknife.BindView;

/**
 * Author yichao
 * Time  2017/12/19 14:40
 * Dest  入住
 */

public class IntakeHouseFragment extends BaseFragment {
    @BindView(R.id.itembuyhousestepview_intake_time_fragmnet_intake_house)
    ItemBuyHouseStepView mItembuyhousestepviewIntakeTimeFragmnetIntakeHouse;


    @Override
    public View initView(Context context) {

        View intakeHouseView = UIUtils.inflate(context, R.layout.fragment_intake_house);
        return intakeHouseView;
    }

    public static BaseFragment newInstance(CheckBean checkBean) {
        IntakeHouseFragment intakeHouseFragment = new IntakeHouseFragment();
        Bundle bundle = new Bundle();
        bundle.putParcelable(Contans.INTENT_DATA, checkBean);
        intakeHouseFragment.setArguments(bundle);
        return intakeHouseFragment;
    }

    @Override
    protected void initData() {
        super.initData();
        Bundle arguments = getArguments();
        CheckBean checkBean=  arguments.getParcelable(Contans.INTENT_DATA);
        if (checkBean!=null){
            mItembuyhousestepviewIntakeTimeFragmnetIntakeHouse.setTvContent(checkBean.getCheckTime()+"");
        }
    }
}
